-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add retries to SCPMover.copy() #153
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I good with thisl.
Is it your intention to drop the timeout to the put function by doing this?
trollmoves/movers.py
Outdated
scp = self._get_scp_client() | ||
scp.put(self.origin, self.destination.path) | ||
success = True | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need the break here if you break on success further down?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was already pretty tired when writing that, so probably not 😅
I think we can keep the timeout option, too. |
Codecov Report
@@ Coverage Diff @@
## main #153 +/- ##
==========================================
+ Coverage 88.37% 88.55% +0.18%
==========================================
Files 22 22
Lines 4437 4492 +55
==========================================
+ Hits 3921 3978 +57
+ Misses 516 514 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This PR adds retries to the
SCPMover.copy()
method. Currently there's only retries in creating the connection.VERY early work.
AUTHORS.md
if not there already